home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 1.6 KB | 77 lines | [TEXT/MPS ] |
- // UDrawingEnvironment.h
- // Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
-
- #ifndef __UDRAWINGENVIRONMENT__
- #define __UDRAWINGENVIRONMENT__
-
- // MacApp
-
- #ifndef __GEOMETRY__
- #include "Geometry.h"
- #endif
-
- #ifndef __TOOLBOX__
- #include "Toolbox.h"
- #endif
-
- #ifndef __UOBJECT__
- #include "UObject.h"
- #endif
-
- // Toolbox
-
- #ifndef __QUICKDRAW__
- #include <Quickdraw.h>
- #endif
-
-
- //----------------------------------------------------------------------------------------
- // TDrawingEnvironment
- //----------------------------------------------------------------------------------------
-
- class TDrawingEnvironment : public TObject
- {
- MA_DECLARE_CLASS;
-
- public:
- TDrawingEnvironment();
- // Constructor
- virtual ~TDrawingEnvironment();
- // Destructor
-
- void IDrawingEnvironment();
-
- virtual GrafPtr GetGrafPort();
- // Returns a pointer to our Graf Port.
-
- virtual void Prepare();
-
- virtual void Setup();
-
- virtual void Complete();
-
- //------------------------------------------------------------------------------------
- // Stream I/O protocol support.
- //------------------------------------------------------------------------------------
-
- virtual void ReadFrom(TStream* aStream);
-
- virtual void WriteTo(TStream* aStream);
-
- //------------------------------------------------------------------------------------
- // data members
- //------------------------------------------------------------------------------------
- public:
- PenState fSavedPenState;
- CRGBColor fForegroundColor;
- CRGBColor fBackgroundColor;
- CRGBColor fSavedForegroundColor;
- CRGBColor fSavedBackgroundColor;
- Pattern fPenPattern;
- CPoint fPenSize;
- short fPenMode;
-
- };
-
- #endif
-